package com.base.self.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 商品信息
 * </p>
 *
 * @author XiFYuW
 * @since 2020-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Commodity对象", description="商品信息")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID自增长（商品编号）")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "代理商id")
    private String parentId;

    @ApiModelProperty(value = "商家id")
    private String shopId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "实付价")
    private BigDecimal commodityRealPrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal commodityMarketPrice;

    @ApiModelProperty(value = "销量")
    private Integer commoditySales;

    @ApiModelProperty(value = "规格")
    private String commodityStandard;

    @ApiModelProperty(value = "库存")
    private Integer commodityStock;

    @ApiModelProperty(value = "商品分区 0: 奖励金区 1：积分 2金豆")
    private Integer commoditySubarea;

    @ApiModelProperty(value = "商品分类一级id")
    private Integer commodityClassifyLevel1;

    @ApiModelProperty(value = "商品分类一级名称")
    @TableField(exist = false)
    private String commodityClassifyLevelName1;

    @ApiModelProperty(value = "商品分类二级id")
    private Integer commodityClassifyLevel2;

    @ApiModelProperty(value = "商品分类二级名称")
    @TableField(exist = false)
    private String commodityClassifyLevelName2;

    @ApiModelProperty(value = "商品展示图片")
    private String commodityShowPic;

    @ApiModelProperty(value = "商品轮播图1")
    private String commoditySlidePic1;

    @ApiModelProperty(value = "商品轮播图2")
    private String commoditySlidePic2;

    @ApiModelProperty(value = "商品轮播图3")
    private String commoditySlidePic3;

    @ApiModelProperty(value = "说明")
    private String commodityExplain;

    @ApiModelProperty(value = "详情")
    private String commodityContextDetails;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "0.未删除 1.已删除")
    private Integer isDel;

    @ApiModelProperty(value = "拼团过期时间(小时)")
    private Integer expirationHour;

    @ApiModelProperty(value = "话费礼包id")
    private Integer callPlan;

    @ApiModelProperty("是否可被购买 0否1是")
    private Integer buy;

}
